package com.shopoo.oauth.dto.cqe;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

import com.shopoo.dto.Query;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Description:
 * @Auther: limy66
 * @Date: 2021/05/12/13:50
 */
@Data
@ApiModel("角色请求实体")
public class RoleQuery extends Query {

    @ApiModelProperty("角色ID")
    private Long roleId;

    @ApiModelProperty("角色名称")
    private String name;

    @ApiModelProperty("角色备注")
    private String remark;

    @ApiModelProperty("当前页码")
    @Min(value = 1, message = "当前页码大小不能小于1")
    private Integer pageNum;

    @ApiModelProperty("每页大小")
    @Min(value = 1, message = "每页大小不能小于1")
    @Max(value = 1000, message = "每页大小不能大于1000")
    private Integer pageSize;
}
